<?xml version="1.0"?> 

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<!--______________________________________________________________________-->

	<xsl:output method="text"/>
	
	<!--______________________________________________________________________-->

	<xsl:template match="/">

		<xsl:variable name="nomeBD">
			<xsl:value-of select="/formsData/forms/form[@id='1.1']/data/combo[@name='banco']"/>		
		</xsl:variable>
		<xsl:variable name="username">
			<xsl:value-of select="/formsData/forms/form[@id='1.1']/data/textatt[@name='username']"/>		
		</xsl:variable>	
		<xsl:variable name="password">
			<xsl:value-of select="/formsData/forms/form[@id='1.1']/data/textatt[@name='password']"/>		
		</xsl:variable>	

/*
 * Created on Dec 1, 2004
 */
package persistence.connection;

/**
 * @author Valter Camargo
 *
 */

public class InterbaseConnection extends DBSpecificConnectionDetail {

	public InterbaseConnection(){	

	<xsl:choose>
	<xsl:when test="$nomeBD='INTERBASE'">
		this.userName = "<xsl:value-of select="$username"/>";
		this.password = "<xsl:value-of select="$password"/>";
  	</xsl:when>
  	<xsl:otherwise>
		this.userName = "sysDBA";
		this.password = "masterKey";
  	</xsl:otherwise>
	</xsl:choose>

	}	
}


	</xsl:template>

</xsl:stylesheet>